const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  productionSourceMap: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://scny.nclavi.com/api/',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        }
      },
      '/geoserver': {
        target: 'https://192.168.2.4:5447/',
        changeOrigin: true,
        pathRewrite: {
          '^/geoserver': '/'
        }
      },
      '/geowebcache': {
        target: 'https://zyjc.lyj.gd.gov.cn/',
        changeOrigin: true,
        pathRewrite: {
          '^/geowebcache': '/'
        }
      }
    }
  }
})
